<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
	<!--载入公共头部-->
		{{include file="VIEW_PATH/Common/header1.php"}}
	<!--载入公共头部结束-->
<!--列表也部分-->
<div class="fenlei">
	<div class="allend">
		<a href="" class="quan">全部商品</a>
		<i class="iconfont">&#xe6a7;</i>
		<strong>{{$cate['cname']}}</strong>
		<div class="liwu"><span class="li"></span><span >京东帮您礼物</span>
			<div class="hidden">
				<p>送给谁：</p>
				<ul class="song">				
					<li><a href="">朋友</a><p class="dui"></p></li>
					<li><a href="">爸爸</a><p class="dui"></p></li>
					<li><a href="">妈妈</a><p class="dui"></p></li>
					<li><a href="">丈夫</a><p class="dui"></p></li>
					<li><a href="">妻子</a><p class="dui"></p></li>
					<li><a href="">男朋友</a><p class="dui"></p></li>
				</ul>
			<p>啥时候送：</p>
				<ul class="song">				
					<li><a href="">朋友</a><p class="dui"></p></li>
					<li><a href="">爸爸</a><p class="dui"></p></li>
					<li><a href="">妈妈</a><p class="dui"></p></li>
					<li><a href="">丈夫</a><p class="dui"></p></li>
					<li><a href="">妻子</a><p class="dui"></p></li>
					<li><a href="">男朋友</a><p class="dui"></p></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="xianshi">
		<div class="wenzi">
			我们为您显示“<span style="color: red;">手机</span>”相关的商品。仍然搜索：“<a href="">shouji</a>”
		</div>
	</div>
	<!--//筛选部分开始-->
	<div class="pickup">
		<div class="pingpai">
			<div class="left">
				<strong>品牌：</strong>
			</div>
			<!--广告logo-->	
			<ul class="logo">
					<?php 
						$temp=$bid;						
					 ?>					
					<li {{if value="$temp==0"}}style="border:2px solid red"{{endif}}><a style="font-size: 16px; text-align: center;line-height: 46px;" href="{{U('list/index',array('bid'=>0,'gcid'=>$_GET['gcid']))}}">不限</a></li>
				
				{{foreach from="$brandData" value="$v"}}
					<?php 
						$temp=$bid;										
					 ?>
					<li {{if value="$temp==$v['bid']"}}style="border:2px solid red;"{{endif}}><a href="{{U('list/index',array('bid'=>$v['bid'],'gcid'=>$_GET['gcid']))}}">
						{{if value="$v['logo']!=''"}}
							<img src="{{$v['logo']}}" alt="" />														
						{{else}}
							<span style="margin-left: 20px;line-height: 45px;">{{$v['bname']}}</span>
						{{endif}}
						</a></li>
				{{endforeach}}	
				
		    </ul>
		   	<!--更多和多选-->		   	
		   	<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		   	<div class="more"><a href="">更多</a><span class="iconfont">&#xe6a6;</span></div>
		</div>
		<!--颜色-->
		<!--<div class="colorb">
			<div class="s">颜色：待定</div>
			<div class="se">
				<a href="" class="a1 a"></a>
				<a href="" class="a2 a"></a>
				<a href="" class="a3 a"></a>
				
			</div>
			<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		</div>-->
		<?php $n=0; ?>
		{{foreach from="$goodsattr" key="$k" value="$v"}}
		<div class="colorb wang">
			<div class="s">{{$k}}：</div>
			<div class="se">
				<?php 
				//这里定义中间变量是为了下面用￥param不会变能重复调用
					$temp=$param;					
					$temp[$n]=0;
					$temp=implode('_', $temp);					
				 ?>
				 <!--这里是必须把get的bid也就是品牌的bid携带过去-->
				<a href="{{U('list/index',array('gcid'=>$_GET['gcid'],'bid'=>Q('get.bid',0),'param'=>$temp))}}" {{if value="$param[$n]==0"}} style="color: red;"{{endif}} class="wanlu">不限</a>
				{{foreach from="$v" value="$vv"}}
				<?php 
					$temp=$param;
					$temp[$n]=$vv['gaid'];
					$temp=implode('_', $temp);
				 ?>
				<a href="{{U('list/index',array('gcid'=>$_GET['gcid'],'bid'=>Q('get.bid',0),'param'=>$temp))}}" {{if value="$param[$n]==$vv['gaid']"}} style="color: red;"{{endif}} class="wanglu">{{$vv['gavalue']}}</a>
				{{endforeach}}			
			</div>
			<div class="jia"><span class="iconfont">+</span><a href="">多选</a></div>
		</div>
		<?php $n++; ?>
		{{endforeach}}	
		<div class="colorb wang gaoji">
			<div class="s">高级选项：</div>
			<div class="se">
				<a href="" class="wanglu gao">颜色</a>
				<a href="" class="wanglu gao">热点</a>
				<a href="" class="wanglu gao">大家说</a>	
				
			</div>	
			
		</div>
		
	</div>
	<!--筛选部分结束-->
	<!--右边推广商品-->
	<div class="tuiguang">
		<p class="font">推广</p>
		<ul class="show">
			{{foreach from='$goodtui' value='$v'}}
			<li>
				<a href="{{U('Detail/index',array('gid'=>$v['gid']))}}" class="tu"><img src="{{$v['listimg']}}" alt="" /></a>
				<p class="jiage"> ¥{{$v['shopprice']}} </p>
				<a href="{{U('Detail/index',array('gid'=>$v['gid']))}}" class="des">{{$v['gname']}}</a>
				<div class="coment">已有<span>{{$v['gsort']}}</span>人浏览</div>
			</li>
			{{endforeach}}
					
		</ul>
		
	</div>
	<!--右面推广商品结束-->
	<!--左面商品展示页-->
	<div class="show_all">
		<div class="paixu">
			<ul class="list">
				<li class="first"><a href="">综合排序</a></li>
				<li><a href="">销量</a></li>
				<li><a href="">价格</a></li>
				<li><a href="">评论数</a></li>
				<li><a href="">新品</a></li>
			</ul>
			<form class="pai" action="" method="post">				
				<input type="text" name="" id="" class="text" value="在结果中搜索"/>
				<input type="submit" value="确定" class="sub"/>
			</form>
			<div class="jiantou">
				<p><i class="iconfont">&#xe697;</i></p>
				<p style="background: white;"><i class="iconfont">&#xe6a7;</i></p>
			</div>
			<p class="fenshu"><span style="color: #E4393C;">1</span>/<span>52</span></p>
			<p class="jianshu">共<span>		
				<?php
					if(isset($goodData))
					echo count($goodData); 
				?>				
			</span>件商品</p>
			
		</div>
		
		<div class="paixu paisong">
			<form action="" method="post">
			派送到：<input class="text" type="text" name="" id="" value="北京朝阳区三环到四环之间" />
								
			</form>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			<div class="xuanxi">
				<i class="kuangzi"></i>
				<p>京东派送</p>
			</div>
			
			<!--箭头-->
			<div class="jiantou">
				<p id="ps"><i class="iconfont">店铺</i></p>
				<p id="ps" style="background: white;"><i class="iconfont">商品</i></p>
			</div>
			
		</div>
		<div class="nei">
			<!--小块展示-->
			{{if value="isset($goodData)"}}
			{{foreach from="$goodData" value="$v"}}
			<div class="box">
				<a href="{{U('Detail/index',array('gid'=>$v['gid']))}}" class="tu"><img src="{{$v['listimg']}}" alt="" /></a>
				<div class="liang">
					{{foreach from="$v['gdimg']" value='$vv'}}
					<p><img width="30" height="30" src="{{$vv}}" alt="" /></p>
					{{endforeach}}
				</div>
				<p class="jiage">￥{{$v['shopprice']}}<span class="zeng">赠品</span></p>
				<p class="des"><a href="{{U('Detail/index',array('gid'=>$v['gid']))}}">{{$v['gname']}}</a></p>
				<p class="renshu">已有<span style="color: #005AA0;">{{$v['gsort']}}</span>人浏览</p>
				<p class="dianpu">小米官方旗舰店<span>京东自营</span></p>
			</div>
			{{endforeach}}
			{{endif}}
			<!--<div class="box">
				<a href="" class="tu"><img src="Public/Home/images/bg39.jpg" alt="" /></a>
				<div class="liang">
					<p></p>
					<p></p>
				</div>
				<p class="jiage">￥3199.00<span class="zeng">赠品</span></p>
				<p class="des">三星 Galaxy A9 (SM-A9000) 魔幻金 全网通4G手机 双卡双待 跨年新品6英寸大</p>
				<p class="renshu">已有<span style="color: #005AA0;">144</span>人评价</p>
				<p class="dianpu">小米官方旗舰店<span>京东自营</span></p>
			</div>-->
			<!--小块展示结束-->
			
		</div>	
		
		
		
		
	</div>
	<!--左面商品展示页-->
	
</div>

<!--列表页结束-->
<footer>
	<div class="sixbian">
		<div class="tua">
			<img src="Public/Home/images/bg24.png" alt="" />	
			<img src="Public/Home/images/bg25.png" alt="" />
			<img src="Public/Home/images/bg26.png" alt="" />
			<img src="Public/Home/images/bg27.png" alt="" />
		</div>
	</div>
	<div class="jieshao">
		<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
			<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>	
		<dl>
			<dt>购物指南</dt>
			<dd>购物流程</dd>
			<dd>会员介绍</dd>
			<dd>生活旅行/团购</dd>
			<dd>常见问题</dd>
		</dl>
		<div class="ditu">
			<p class="a1">京东自营覆盖区县 </p>
			<p class="a2">京东已向全国2376个区县提供自营配送服务，支持货到付款、POS机刷卡和售后上门服务。</p>
			<a class="a3" href="">查看详情 ></a>
		</div>
	</div>
	<div class="bi">
		<ul class="ul">
			<li>关于我们<span>|</span></li>
			<li>联系我们<span>|</span></li>
			<li>商家入驻<span>|</span></li>
			<li>营销中心<span>|</span></li>
			<li>手机京东<span>|</span></li>
			<li>友情链接<span>|</span></li>
			<li>销售联盟<span>|</span></li>
			<li>京东社区<span>|</span></li>
			<li>京东公益<span>|</span></li>
			<li>English<span>|</span></li>
			<li>Contact<span>|</span></li>
			<li>Us<span>|</span></li>
			<li>Site</li>			
		</ul>
		<center class="b">北京市公安局朝阳分局备案编号110105014669  |  京ICP证070359号  |  互联网药品信息服务资格证编号(京)-经营性-2014-0008  |  新出发京零 字第大120007号</center>
		<center class="b2">音像制品经营许可证苏宿批005号  |  出版物经营许可证编号新出发(苏)批字第N-012号  |  互联网出版许可证编号新出网证(京)字150号</center>
		<center class="b3">网络文化经营许可证京网文[2014]2148-348号  违法和不良信息举报电话：4006561155  Copyright © 2004-2016  京东JD.com 版权所有</center>
		<center class="b4">京东旗下网站：360TOP  拍拍网  网银在线</center>
		<center class="b5">
			<img src="Public/Home/images/bg21.png" alt="" />
			<img src="Public/Home/images/bg22.png" alt="" />
			<img src="Public/Home/images/bg23.png" alt="" />
			<img src="Public/Home/images/bg29.png" alt="" />
			<img src="Public/Home/images/bg28.png" alt="" />
		</center>
	</div>
</footer>
<body>
</body>
</html>
